import service from "@/utils/service";

// 获取商品分类
export const getCategoryApi=()=>service.get("/admin/pro/getCategory"); 


// 获取商品列表
export const getProApi=(params:any)=>service.get("/admin/pro/list",{params}); 



// 获取秒杀
export const getSecKillProApi=(params:any)=>service.post("/admin/pro/showdata",{...params,type:"isseckill"}); 


// 获取推荐
export const getRecommendProApi=(params:any)=>service.post("/admin/pro/showdata",{...params,type:"isrecommend"}); 



// 筛选商品
export const getSearchProApi=(params:any)=>service.post("/admin/pro/searchPro",params); 
